package com.tpnexus;

import java.io.Serializable;

import javax.annotation.PostConstruct;

public class Product implements Serializable {

	private static final long serialVersionUID = 1L;
	int productID;
	String productName;
	String productDesc;
	double productPrice;

	String manufacture;

	public int getProductID() {
		return productID;
	}

	public void setProductID(int productID) {
		this.productID = productID;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductDesc() {
		return productDesc;
	}

	public void setProductDesc(String productDesc) {
		this.productDesc = productDesc;
	}

	public double getProductPrice() {
		return productPrice;
	}

	public void setProductPrice(double productPrice) {
		this.productPrice = productPrice;
	}

	public String getManufacture() {
		return manufacture;
	}

	public void setManufacture(String manufacture) {
		this.manufacture = manufacture;
	}

	public Product(int productID, String productName, String productDesc,
			double productPrice, String manufacture) {
		super();
		this.productID = productID;
		this.productName = productName;
		this.productDesc = productDesc;
		this.productPrice = productPrice;
		this.manufacture = manufacture;
	}

	@PostConstruct
	public void init() {
		System.out.println(this + "----------NEW-------------");
	}

	public Product() {
	}

	@Override
	public String toString() {
		return "Product [productID=" + productID + ", productName="
				+ productName + ", productDesc=" + productDesc
				+ ", productPrice=" + productPrice + ", manufacture="
				+ manufacture + "]";
	}
}
